﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ConsultingList.aspx.cs" Inherits="CJJCH.Web.Manage.ConsultingList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Style/SystemCss.css" rel="stylesheet" type="text/css" />
    <script src="../JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../lhgdialog/lhgcore.min.js" type="text/javascript" language="javascript"></script>
    <script src="../lhgdialog/lhgdialog.js" type="text/javascript" language="javascript"></script>
    <script src="../Script/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="../Script/JQcheck.js" type="text/javascript"></script>
     <script src="../JScript/Calendar/WdatePicker.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function ShowFinish(varID) {
            var dlg = new J.ui.dialog({ id: 'd2', title: '项目详情', width: 800, height: 600, cover: true, btns: false, rang: true, resize: false, page: 'ConsultingDetails.aspx?ID=' + varID });
            dlg.ShowDialog();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div runat="server" id="divHidden" visible="false">
            <asp:Label ID="lblFirstID" runat="server"></asp:Label>
            <asp:Label ID="lblSecondID" runat="server"></asp:Label>
            <asp:Label ID="lblSecondName" runat="server"></asp:Label>
            <asp:Label ID="lblKeyword" runat="server"></asp:Label>
            <asp:Label ID="lblOrderType" runat="server"></asp:Label>
            <asp:Label ID="lblOrderKey" runat="server"></asp:Label>
            <asp:Label ID="lblThirdID" runat="server"></asp:Label>
            <asp:Label ID="lblBeTime" runat="server"></asp:Label>
            <asp:Label ID="lblEdTime" runat="server"></asp:Label>
        </div>
        <uc:ConsultingTop ID="ConsultingTop1" runat="server" IIndex="1" />
        <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
            <tr>
                <td valign="top" style="width: auto; height: 100%; background: #d7e7ff;">
                    <div class="MainbodyTop" style="margin-bottom: 5px;">
                        <div class="MainSearch" style="width: 100%; margin: 5px 0px 5px 0px;">
                            <table border="0" cellpadding="2" cellspacing="0" width="auto">
                                <tr>
                                    <td>
                                        编号/名称：<asp:TextBox ID="txtKeyword" runat="server" class="InputSearch_x1"></asp:TextBox>
                                    </td>
                                    <td id="tdType" runat="server">
                                        类别：<asp:DropDownList ID="dropThird" runat="server">
                                            <asp:ListItem Text="所有" Value="0"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        发布时间：
                                        <asp:TextBox runat="server" ID="txtBegin" onkeydown="return false;" onkeypress="return false;"
                                            onpaste="return false;" oncut="return false;" onfocus="new WdatePicker({dateFmt:'yyyy-MM-dd',skin:'blue',isShowClear:true,maxDate:'#F{$dp.$D(\'txtEnd\')}',onpicked:function(){$dp.$('txtEnd').focus();}});"
                                            CssClass="EditInPut" Width="70px"></asp:TextBox>至
                                        <asp:TextBox runat="server" ID="txtEnd" onkeydown="return false;" onkeypress="return false;"
                                            onpaste="return false;" oncut="return false;" onfocus="new WdatePicker({dateFmt:'yyyy-MM-dd',skin:'blue',isShowClear:true,minDate:'#F{$dp.$D(\'txtBegin\')}'});"
                                            CssClass="EditInPut" Width="70px"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnSearch" runat="server" Text="搜 索" OnClick="btnSearch_Click" Style="padding: 2px 10px 3px 10px"
                                            Width="62px" CssClass="BtnSearch_x1" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="RBodyTable_x2 Link_font" style="width: 99%;">
        <table width="99%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
            class="font">
            <tr>
            <th width="25%" align="center" valign="middle" class="HeaderBg">
                    <asp:LinkButton ID="lbtnTitle" runat="server" ToolTip="点击可排序" OnClick="lbtnTitle_Click">项目编号</asp:LinkButton>
                </th>
                <th width="30%" align="center" valign="middle" class="HeaderBg">
                    <asp:LinkButton ID="lbtnSource" runat="server" ToolTip="点击可排序" 
                        onclick="lbtnSource_Click" >项目名称</asp:LinkButton>
                </th>
                <th width="10%" align="center" valign="middle" class="HeaderBg" id="thType" runat="server">
                    <asp:LinkButton ID="lbtnType" runat="server" ToolTip="点击可排序" OnClick="lbtnType_Click">类别</asp:LinkButton>
                </th>
                <th width="10%" align="center" valign="middle" class="HeaderBg">
                    <asp:LinkButton ID="lbtnHits" runat="server" ToolTip="点击可排序" OnClick="lbtnHits_Click">点击率</asp:LinkButton>
                </th>
                <th width="15%" align="center" valign="middle" class="HeaderBg">
                    评估日期
                </th>
                <th width="10%" align="center" valign="middle" class="HeaderBg">
                    操作
                </th>
            </tr>
            <asp:Repeater ID="rptConsulting" runat="server" OnItemDataBound="rptConsulting_ItemDataBound">
                <ItemTemplate>
                    <tr class="tdBg1">
                        <td align="center" valign="middle">
                           <asp:LinkButton ID="lbtnTitle" runat="server"></asp:LinkButton>
                        </td>
                        <td align="center" valign="middle">
                            <asp:Label ID="lblSource" runat="server"></asp:Label>
                        </td>
                        <td align="center" valign="middle" id="tdType" runat="server">
                            <asp:Label ID="lblThirdID" runat="server"></asp:Label>
                        </td>
                        <td align="center" valign="middle">
                            <asp:Label ID="lblHits" runat="server"></asp:Label>
                        </td>
                        <td align="center" valign="middle">
                            <asp:Label ID="lblPlusDate" runat="server"></asp:Label>
                        </td>
                        <td align="center" valign="middle">
                            <asp:LinkButton ID="lbtnEdit" runat="server" OnClick="lbtnEdit_Click">修改</asp:LinkButton>
                            <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtbDel_Click">删除</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <asp:Literal ID="litMessage" runat="server"></asp:Literal>
    </div>
    <div class="MainPage_x1" style="width: 100%; margin: 5px auto;">
        <webdiyer:AspNetPager id="AspNetPager1" onpagechanged="AspNetPager1_PageChanged"
            alwaysshow="true" runat="server" pagesize="15" numericbuttoncount="5" showcustominfosection="Right"
            pagingbuttonspacing="5" horizontalalign="Right" submitbuttontext="转到" submitbuttonclass="inputsubmit"
            numericbuttontextformatstring="[{0}]" nextpagetext="下一页" firstpagetext="首页" cssclass="anpager"
            currentpagebuttonclass="cpb" lastpagetext="尾页" prevpagetext="上一页">
        </webdiyer:AspNetPager>
        
    </div>
    </form>
</body>
</html>
